import hashlib

def hash_password(password: str) -> str:
    """使用 MD5 对密码进行哈希"""
    return hashlib.md5(password.encode()).hexdigest().upper()

def verify_password(plain_password: str, hashed_password: str) -> bool:
    """验证密码是否正确"""
    return hash_password(plain_password) == hashed_password 